



<div class="x-body">
    <form class="layui-form form_single" id="form" action="{:url()}" method="post">
        <div class="layui-form-item">
            <label  class="layui-form-label">
                <span class="x-red">*</span>彩种
            </label>
            <div class="layui-input-block">
                <select name="lottery_id" >
                    {volist name='cate' id='vo'}
                    <option value="{$vo['id']}" {notempty name="$info['cate_id']"}{if condition="$info['cate_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                    {/volist}
                </select>
            </div>
            <div class="layui-form-mid layui-word-aux">
                (彩种)
            </div>

        </div>
        <div class="layui-form-item">
            <label for="round" class="layui-form-label">
                <span class="x-red">*</span>开奖期号</label>
            <div class="layui-input-block">
                <input type="text" id="round" name="round" onchange="this.value=this.value.substring(0, 50)" onkeydown="this.value=this.value.substring(0, 50)" onkeyup="this.value=this.value.substring(0, 50)" required="" lay-verify="required"
                       autocomplete="off"  value="{$info['round']|default=''}" class="layui-input">
            </div>
            <div style="color: red !important;" class="layui-form-mid layui-word-aux">
                （开奖期号）
            </div>
        </div>

        <div class="layui-form-item">
            <label for="number" class="layui-form-label">
                <span class="x-red">*</span>开奖号码</label>
            <div class="layui-input-block">
                <input type="text" id="number" name="number" onchange="this.value=this.value.substring(0, 50)" onkeydown="this.value=this.value.substring(0, 50)" onkeyup="this.value=this.value.substring(0, 50)" required="" lay-verify="required"
                       autocomplete="off"  value="{$info['number']|default=''}" class="layui-input">
            </div>
            <div style="color: red !important;" class="layui-form-mid layui-word-aux">
                （开奖号码）
            </div>
        </div>



        <div class="layui-form-item">
            <label for="create_time" class="layui-form-label">
                <span class="x-red">*</span>开奖时间</label>
            <div class="layui-input-block">
                <input type="text" id="create_time" name="create_time" onchange="this.value=this.value.substring(0, 50)" onkeydown="this.value=this.value.substring(0, 50)" onkeyup="this.value=this.value.substring(0, 50)" required="" lay-verify="required"
                       autocomplete="off"  value="{$info['create_time']|default=''}" class="layui-input">
            </div>
            <div style="color: red !important;" class="layui-form-mid layui-word-aux">
                （开奖时间：为空即默认当前时间）
            </div>
        </div>








        <div class="box-footer">
            <input type="hidden" name="id" value="{$info['id']|default='0'}"/>

            {include file="layout/edit_btn_group"/}

        </div>

    </form>
</div>

<script>

    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#create_time', //指定元素
            type:'datetime'
        });


    });


</script>
